<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//Auth::routes();


Route::any('/', function () { return view('index.index');});
Route::any('/welcome', function () { return view('welcome');});

Route::get('user/toregist', function () { return view('user.regist');});
Route::get('user/toAdd', function () { return view('user.add');});


Route::any('user/regist', "UserController@regist");


Route::get('user/tologin',function () { return view('user.login');});

Route::any('user/login','UserController@login');
Route::any('user/info','UserController@info')->name('userInfo');
Route::any('user/log','UserController@logs')->name('userLog');
Route::any('user/shoping','UserController@shoping');
Route::any('user/toshoping', function () { return view('user.shoping');});
Route::any('user/doshoping', function () { return view('user.doshoping');});
Route::any('user/shoping','UserController@shoping')->name('shoping');

Route::any('user/test','UserController@test');
Route::any('user/relation','UserController@relation');


